package com.wbcs.system.component.application.report.configbean;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.wbcs.config.component.application.report.ColBean;

/**
 * ServerJsonServiceType 对应的返回JsonBean对象定义
 * @author hawkfly
 */
public class ServerJsonServiceBean {
    private String metaData;
    private List<Object> dataHeader;
    private List<?> lstReportData;
    private Map<String, Object> navigation = new HashMap<String, Object>();
    public Map<String, Object> getNavigation() {
		return navigation;
	}

	public void setNavigation(Map<String, Object> navigation) {
		this.navigation = navigation;
	}

	private Map<String, String> savedMsg = new HashMap<String, String>();

    public String getMetaData() {
        return metaData;
    }

    public void setMetaData(String metaData) {
        this.metaData = metaData;
    }

    public List<?> getLstReportData() {
        return lstReportData;
    }

    public void setLstReportData(List<?> lstReportData) {
        this.lstReportData = lstReportData;
    }

    public ServerJsonServiceBean setDisplayRowInfo(int pageno){
        navigation.put("currentPage", pageno);
        return this;
    }

    public ServerJsonServiceBean setRecordCount(int recordCount){
        navigation.put("recordCount", String.valueOf(recordCount));
        return this;
    }

    public ServerJsonServiceBean setPageSize(int pageSize){
        navigation.put("pageSize", String.valueOf(pageSize));
        return this;
    }

    public List<Object> getDataHeader() {
        return dataHeader;
    }

    public void setDataHeader(List<Object> dataHeader2) {
        this.dataHeader = dataHeader2;
    }
}
